package com.example.enjoylearning.login

import android.content.Context
import com.example.enjoylearning.model.LoginBen

/**
 * @Author ninetailedfox
 * @Data 2022/10/31 10:12 下午
 * @ClassName LoginPresenter
 **/
interface LoginPresenter {
    fun loginWanAndroid(context: Context, username: String, password: String)
    fun registerWanAndroid(context: Context,username: String, password: String, repassword: String)

    interface OnLoginListener {
        fun loginSuccess(loginBen: LoginBen)
        fun loginFailed(message: String)
    }

    interface OnRegisterListener {
        fun registerSuccess(loginBen: LoginBen)
        fun registerFailed(message: String)
    }
}